package com.os.start.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述:
 *
 * @author Matt
 * @create 2021-05-10 23:09
 */
@Controller
@RequestMapping("ftl")
public class FreemarkerController {

    @RequestMapping("/index")
    public String index(ModelMap modelMap){
        modelMap.addAttribute("name", "Matt");
        return "freemarker/index";
    }

    @RequestMapping("/center")
    public String center(){
        return "freemarker/center/center";
    }

}
